package com.example.api.elk.component.es;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @name: Goods
 * @description: 商品索引类
 * @author: xw.s
 * @date: 2021/6/18-9:28
 */
@Data
@Document(indexName = "goods")
public class Goods {
    @Id
    @Field(type = FieldType.Text)
    private String id;
    @Field(type = FieldType.Text)
    private String title;
    @Field(type = FieldType.Text)
    private String image;
    @Field(type = FieldType.Double)
    private double price;
}
